/**
 * @Description:
 * @Author bianpengfei
 * @create 2021/5/13 21:55
 */
'use strict'
;(function (window, factory) {
  factory()
})(window, function () {
  var parseNoError = function parseNoError(str) {
    try {
      return JSON.parse(str)
    } catch (e) {
      return null
    }
  }

  var systemInfo = parseNoError(localStorage.getItem('system_info')) || {}
  var primaryColor = systemInfo.app && systemInfo.app.primaryColor

  if (primaryColor) {
    var iItems = document.querySelectorAll('#app-loading__index .ant-spin-dot i')

    if (iItems && iItems.forEach) {
      iItems.forEach(function (el) {
        el.style.backgroundColor = primaryColor
      })
    }
  }
})
